package ftp;

import net.sf.cglib.proxy.Enhancer;

/**
 * @author shenhan
 * @create 2020/2/10 20:57
 * @description
 */
public class TestSftpWithCglib {
    public static void main(String[] args) {
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(JobDemo.class);
        enhancer.setCallback(new JobMethodInterceptor());
        final JobDemo proexy = (JobDemo) enhancer.create();
        proexy.work("shenhan","liushuang");
    }
}
